import React from 'react'
import { strZip, strZip2, formmatTime } from './01.match'

function Page() {
    const str = 'aaaabbcccccddddeeeeffgggghhhhaaaddghhhjkfff'
    const result = strZip(str)
    const result2 = strZip2(str)
    const date = new Date()
    date.setMonth(4)
    const dateString = formmatTime(date, 'yyyy-MM-dd hh:mm:ss')
    console.log(dateString);
    
    return (
        <div>
            <div>{str}: </div>
            <div>{result}</div>
            <div>{result2}</div>
            <h2>格式化时间</h2>
            <div>{formmatTime.toString()}</div>
        </div>
    )
}

export default Page
